<template>
  <div>
    <h1>爷爷组件</h1>
    <hr />
    <ProvideParent />
  </div>
</template>

<script setup>
import ProvideParent from "./Provideparent.vue";
import { provide, ref } from "vue";
let mony = ref(1000);
let updateMony = (value) => {
  mony.value += value;
};
provide("mony", mony);
provide("updateMony", updateMony);
</script>

<style lang="scss" scoped></style>
